package com.cn.kehong.domain;

import com.cn.kehong.utils.CommonUtil;
import com.google.common.collect.ImmutableMap;

import java.util.Date;
import java.util.Map;

public class PhysicalChemical {
    private String id;

    private String relateId;

    private String testNumber;

    private String testType;

    private String batchNumber;

    private String sampleName;

    private String specificationsType;

    private String inspectionItems;

    private String submissionName;

    private Date submissionTime;

    private String status;

    private String isDel;

    private String createBy;

    private Date createTime;

    private String updateBy;

    private Date updateTime;

    private String inspectionResults;

    private String factoryWorkshop;

    private String packagingNumber;

    private String batchAverage;

    private String supplierName;

    private String sectionProcess;

    private String itemType;

    private String sourceType;

    private String submissionType;

    private Date PackageTime;
    private int  count;
    public static final transient Map<String,String> DEVICESTAT = ImmutableMap.of("0","待检验","1","已完成","2","已取消");

    public String getPhysicalStatusCn() {
        return DEVICESTAT.get(getStatus());
    }
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getRelateId() {
        return relateId;
    }

    public void setRelateId(String relateId) {
        this.relateId = relateId == null ? null : relateId.trim();
    }

    public String getTestNumber() {
        return testNumber;
    }

    public void setTestNumber(String testNumber) {
        this.testNumber = testNumber == null ? null : testNumber.trim();
    }

    public String getTestType() {
        return testType;
    }

    public void setTestType(String testType) {
        this.testType = testType == null ? null : testType.trim();
    }

    public String getBatchNumber() {
        return batchNumber;
    }

    public void setBatchNumber(String batchNumber) {
        this.batchNumber = batchNumber == null ? null : batchNumber.trim();
    }

    public String getSampleName() {
        return sampleName;
    }

    public void setSampleName(String sampleName) {
        this.sampleName = sampleName == null ? null : sampleName.trim();
    }

    public String getSpecificationsType() {
        return specificationsType;
    }

    public void setSpecificationsType(String specificationsType) {
        this.specificationsType = specificationsType == null ? null : specificationsType.trim();
    }

    public String getInspectionItems() {
        return inspectionItems;
    }

    public void setInspectionItems(String inspectionItems) {
        this.inspectionItems = inspectionItems == null ? null : inspectionItems.trim();
    }

    public String getSubmissionName() {
        return submissionName;
    }

    public void setSubmissionName(String submissionName) {
        this.submissionName = submissionName == null ? null : submissionName.trim();
    }

    public Date getSubmissionTime() {
        return submissionTime;
    }

    public void setSubmissionTime(Date submissionTime) {
        this.submissionTime = submissionTime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    public String getIsDel() {
        return isDel;
    }

    public void setIsDel(String isDel) {
        this.isDel = isDel == null ? null : isDel.trim();
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy == null ? null : createBy.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy == null ? null : updateBy.trim();
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getInspectionResults() {
        return inspectionResults;
    }

    public void setInspectionResults(String inspectionResults) {
        this.inspectionResults = inspectionResults == null ? null : inspectionResults.trim();
    }

    public String getFactoryWorkshop() {
        return factoryWorkshop;
    }

    public void setFactoryWorkshop(String factoryWorkshop) {
        this.factoryWorkshop = factoryWorkshop == null ? null : factoryWorkshop.trim();
    }

    public String getPackagingNumber() {
        return packagingNumber;
    }

    public void setPackagingNumber(String packagingNumber) {
        this.packagingNumber = packagingNumber == null ? null : packagingNumber.trim();
    }

    public String getBatchAverage() {
        return batchAverage;
    }

    public void setBatchAverage(String batchAverage) {
        this.batchAverage = batchAverage == null ? null : batchAverage.trim();
    }

    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName == null ? null : supplierName.trim();
    }

    public String getSectionProcess() {
        return sectionProcess;
    }

    public void setSectionProcess(String sectionProcess) {
        this.sectionProcess = sectionProcess == null ? null : sectionProcess.trim();
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public String getSubmissionTimeFt(){
        String formatTime = CommonUtil.getStrTime(getSubmissionTime(),"yyyy-MM-dd HH:mm:ss");
        return formatTime;
    }

    public String getCreateTimeFt(){
        String formatTime = CommonUtil.getStrTime(getCreateTime(),"yyyy-MM-dd HH:mm:ss");
        return formatTime;
    }

    public String getItemType() {
        return itemType;
    }

    public void setItemType(String itemType) {
        this.itemType = itemType;
    }

    public String getSourceType() {
        return sourceType;
    }

    public void setSourceType(String sourceType) {
        this.sourceType = sourceType;
    }

    public String getSubmissionType() {
        return submissionType;
    }

    public void setSubmissionType(String submissionType) {
        this.submissionType = submissionType;
    }

    public Date getPackageTime() {
        return PackageTime;
    }

    public void setPackageTime(Date packageTime) {
        PackageTime = packageTime;
    }
}